added --check argument