added an optional getChannel function to sync
added channel filtering