added changes to the csec script based on experiments yesterday