added some play functionality