improve prog checks when used with args