gluda: remove dinamic alocation and add user data support