moved recompile to its own object and now emitting events!
moved compile.sh