added som error handling when not specifying port and host information