add serialize to context in activities