macro to slim and merge
reverting to tchain not done yet