fixed ports may need more changing
updated constants