compiling script now cleans up itself