added directory generation; need to make options deterministic