update duration and added some playlist methods