Merge pull request #75 from Supermathie/master

add a few preflight checks