updated for fw v5 and hw rev4