add warning feature