add warning about inheritance