sorrounded functions with compile
added xml file component