seperate install callback actions to lib/install