automatically switch resource when someone writes from not default one