refactor peg modules into own director