updated api - fixed attribute bugs