fixed pd logic and migrate main_spread to main
removed main_spread temp file
update role logic