introduced temp_path to janus_initialize