changed client to avoid sending empty requests