improves API to be more concise and declarative
bumps version to 2.1.0 as minor update