funtions and install init