improve style of warning - fixes #25