only enabling viewserver for debug builds