got async parallels to work for register controller + refactor into util