need to get debug working