rm capabilities
moving r_coerce
moving inlinable functions in headers