create apic frame if it doesnt exist
fix clear tags spec
add clear all tags option, fix setting mimetype