filter device before create contexts
update example