save/load -x flag when sourcing external resource