attach app to request attribute