first attempt at psearch project