fixing user generation in init