moved some useful things into schema tools