add debug switch
Bug fix. Was pointing to wrong module. Fixed that.