add setPrefix method

Allows the prefix to be changed