remove extraneous deps and warn on unhandled cases instead of causing an undefined crash