move handle escaped into its own func