-ported formulae_manager to use resources