added POST functionality for refs