starting to rewrite apache support