adding function to attach channel with user... not working yet....