added buffer method to router