mccabe
also set the image dir
some database checks we will need later