added key mask to formatter; still need to implement