fix allloaded to use new api