added warning kinds and source in location