added changes to create recipe xml and found a bug