added tracking and cost functions to ups module