make Main instantiable for testing