Protecting lib from crappy devices