register, play added and some minor changes