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