added textloader and keyhandler