libcoprthr: dev refactoring