cleaning up for appx
merged
finished serialization work for background task