some initial code checking