more system check into code out of script