updated to include some changes for kate editor