Assembler and environment monitor fixes