a less elegant solution, but easier intellij auto-completion