added load_spec method