fix newline in port
update server-side version checking for new structure