random updates for params + several bug fixes