writing consensus in appropriate folder