weird indenting
moved things to tools, didn't test. my bad