make app.oninit better usable as decorator