flag --debug working