added flag to prevent app from sleeping