first version of ports working