changed api
added configuration into init of portManager