got it working okay-ish. need to refactor start thinking about search options