text routing support added and global key changed into variable