finished merchant mode implementation
