updated to correctly use LibPass API