ignore invalid, minimify, improve perfs