fix VM credential lookup