fix exceptions caused by incomplete define statement
fix npes caused by project not being loaded. fixes #116
fix another npe caused by an invalid module import
unstable 0.5.1 jar