tackle errors and warnings in debug build