Support for empty port numbers; Better error msg on invalid engine