added function for soap local