index path code to int id; add few more features