translation changes for end_block, bugs fixed for raw input resource values, some other modifications for proper flow of control for target code