added some ability for purchasing