little fixes + first template choice
add ip and port options