implement from_short_code