implemented #11 applying port number to template when installed