refactor coredatamanager and change travisci path