support command line arguments for overriding directory