add escape functionality