get rid of switch statements, we can't use them in library projects