was sending wrong profile while POSTing to directory