refactor api, add gif file