add director parser, encoding yet to fix