initial setup routine