some fixes, simpify make output
full reduce imlementation