added user related functionality by hai