clean up constraints
add new reject links property
add test cases for different settings of reject links option