changing Apache models to make Apache a singleton