fixed publish to topic and updated to latest core