pcs ajax modified version