first stab at likelihood optimization