WIP #218
changed IP to InstPtr based on review comments