more flexible thor dependency