optimize getCaller methods