code review reveals strange things - add warnings