correct permission & add media replace plugin