get_probe function and some tweeks