v1.2 with enhanced error output