fixed compilation errors, tested working luddef code