added error message for incomplete packet