updated models and created robust url encoder