correct api border and make all stdout/stderr output optional