add and throw error on bad path