refactored, added post params, and interpolation.
refactored and added interpolation.