fixed a lot of boolean issues and "get code" output