Well turns out jcl isn't a chief engineer for nuthin'. That was exactly my problem. After fixing the return type everything worked exactly as expected. Thanks for the help!