change to use ajax since exec didn't work on a certain vps