add Sally func
add escape mode settings