add ability to set background mode in service