exposing api for test