fixes classes not being recognized when there was no module present, adds a little more debugging output