adding a standalone credentials and connection function