pimem changes for st exception handling