rendo: adjust usage of context, no real reason for malloc