add constructor with Credentials