simple fix to avoid using case syntax
Merge pull request #5 from joseluistorres/simple-workaround-adapters

simple fix to avoid using case syntax