added injection() and fixed typewrite to use local var. will work on TW more later