added sample retrieval for PWX