rebuilt the standalone after implementing some error handling within the main script