adds uid to return hash