implement multi arguments for multiple domains

solves #1