reworked api, v. 1.0.0