moving xyz_call functions from intr to api to speed up realm creation and forgetting parsing each time