more efficient and elegant BSH invocation