Multi inputs rescue2

Add multi inputs support (without travis configs try to make it run itself).