add localchannel.h, move declaration of localchannel to localchannel.h