handle package::function in top call; if top call appear to be oringal call, read it from last call instead of from error message, thus reducing probability of failure when top call is ver long