debugging
port as int
removed debugging output and corrected authenticate method name