encondig parameters and get stage from controller