missing instance
fix problem with expects; simplify implementation