server side code for conkey