as api. not sure if possible