checking settings before executing commands