refactoring osgi
add osgi listeners