stabilizing compilation. commenting out some obsolete code. broke functionality that will be restored once "modules" development is completed.