minor fixes and tweaks to the reapp initialisation scripts