more progresses with the port, still not finished