added sanity checks to init script