minor refactor of short_id