use just the user objet
fix uid usage
debug
fix null ptr exception