properly run from command line