added refType to search global method
added refType to other methods also