moved all stathat calls to background tasks. fixes #3