check error on run