classmap not working by itself