support directive hashmap format