added options: debug, shallow