some modifications to dplay