adding more accurate pillow checking

needs localsettings update but will fall back nicely to old style