added simple numeric checks for routing conditions
more generic mongodb plugin