port groundwork
cleanup, groundwork for port handling