unification of prepareoptions and loadoptions as they were basically identical