fixed bug in flatten-code
it is now possible to compile code from eclipse by using the console