account for return value in onResume callback