introducing utils; moved array_* into utils