added development mode to ease debugging and testing