set environment varaibles and port defaults