refactored paxos module into a folder