more functions for init.sh