bug fix, problems in case of jam in both direction, not enough check. introduce regex everywhere.