fixed tometa errors
adding socket and port input conditions through bool functions