replace app with service