added VISUAL variable
small fixes