compinvest lib