make sure that cors header is set for requests
moved file
bit of module work
handle procedure parameters