logic error in choosing which class to import from handlers