add basic checking