more elegant way for handling adapter/plugins loading