some intptr extensions
possible target crash fix