some basic checks