Working on trails api