less hacky way to fix the travis shallow copy problem