more tinkering to try and get the bind operator (>>=) to work