adapting to latest gelam, updating code to match api dependency