config api

closes #7