refining the apis