that's not an answer. `polpetta_root` is based on arguments length and does operate expecting 1 maximum 2 arguments. Anything that is not `port` or `folder` should not be parsed for no reason through `path.resolve` so I would avoid multiple calls to `polpetta_root` when not necessary and here is not necessary.

Please move the `root = polpetta_root(arguments)` outside both `if/else` and put in eventually after either inside a `if(SSL || CORS)` condition or regardless, dropping the initial assignment on top being sure the rest of the following logic is not compromised.

Thanks