fixing api lib shit