need to refer to credentials in hash