better socket creation
small refactor in animations