changed the default port and context evalution logic