Formatting as a tree
simple implementation of frame ranges