server side code to take into account android side