turned on and fixed middleware
Merge pull request #33 from stealthycoin/turned_on_middleware

turned on and fixed middleware