removed getPrefix() method and placed it in its own class