simulator factory
parse the flags and generate the factory