redirect working after adding location! use of jsonbuilder and success callback. figure out what the tmp pids directory file is before adding