allow app port to be specified