added permalink
added permalink management and parse options
added lang option