fix output for standalone