General purpose environment bootstrapper