implement typeof and add await function to system library