added builder and viewer modes in server