register the new stage and update build files
Add simulation flag

minor bugfix

Add simulation flag