chapter handling, naive formatting ;)