updates port
adds app exit
wip