heredocs don't seem to be working