utilities to make porting life easier