added support for running locally