add bypass function