added flattener tool