support lib for the port code