add Y axis scanning functions
add y scanning and use it in automode