she had been so thoroughly trained that she knew instinctively all the niceties of etiquette and all the proper forms to be observed upon coming into the presence of an emperor or a king , but the physical presence of a god still baffled and even frightened her .