added promise pattern for fetching users
config in config