added try / except to creds import, took idea from fork