Seperated connection to func, verified working, starting restful conversion