fix warnings and update mechanism