use intval, clean up api