quicker error check before sketch run