added play and exit support