twitter implementation
improve core and api