added helper functions to karaf