move time intensive script out of start.sh to bin/preflight.sh, not it runs in background during initial spinup, updated category_mod.php