support to stop service or run in background