moved directory specification to beginning of notebook