initial extraction stuff