udpate fiel
add cors
refactor everything to be a little cleaner
fix namespace errs