clean & complete workflow on main file