wip
add idea filter
cleanup
new gradient check, clean matrix loading
fixing merge