moved prereqs function to here from _admin code to make more sense