new functions in API (attr, css, empty)