tests passing
fix casting
fix token.getuser