generating spout-spec and bolt-spec