implemented background tasks to create snapshost
some cleanup