4 expose api

closes #4