some useful stuff for osgi