basic homebuilt grid search