simplified with encoding done serverside