fixed bool bug; added cache expired