minor modifications to supress std output