this is the reference implementation for a miataru server