https://code.google.com/p/defmod/