attempt at an automatic initialisation script