add buildjson.py for processing a directory
add `optional` flag for params