hierarchy handling to client, simplified options

still have to implement hierarchy handling in template