1. better refereshing mechanism of PKCS#11 keys. 2. simplified the OSGi script