add ability for purchase close