added cauth and cchannel, fixed some functions
version update
fixed flags