specify dir not file when instantiating
move migrations dir polling to lib code