updated usage example after fixing core