fix renaming with 'to' and 'as'; take back 'media_resources