new api that is using hooks
1.0.0