minor refactoring
changes BayAPI._get() so that path is taken as a string