add support for credentials