constraint fixes and added stride for some path-related operations