private to public access
add service registry
throw exception
use ServiceREgistry