add wrapper script and update gemfile for recording