more iml tidying