instantiate Application dynamically