fix saving of proxy data, add save directive