background mode is working