new script for running from gem