add verbose and debug flag