friendly ids and better handling of bad ids