reimplement router and store without mnesia