Working version before adding user api functions As we cant test due to corona, i need to hope it still works