added -d for dummymode