add prefix support. Closes #1