update
fixed: missing else branch
added: std output for bsc/phd versions for comparison