bug - do not update credentials if undefined in options