trim and add support for nook hd (maybe, messy)