fix permissions issue, forgot run command, moved to main run block