reinstate escape() function
improve whatvar() function