fix --coffee and --minsafe; close #48