made sure "optimize" tries to get the current project