put and generlize path