split mimerender into a seperated file