install libs first