add logging, debug and quiet