improved compile-time warnings