the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
all lua frontend files are now in the frontend/ directory. all old code is cleaned up.