more rigurous enginery output validation