fixed unexpected eof crash
starting method dispatch code